package com.sh.business.mapper;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.sh.business.domain.UserRepurchase;
import com.sh.business.domain.vo.UserRepurchaseVo;
import com.sh.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 用户充值复购u记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-29
 */
public interface UserRepurchaseMapper extends BaseMapperPlus<UserRepurchase, UserRepurchaseVo> {

    default UserRepurchase queryByTxHash(String txHash) {
        return this.selectOne(Wrappers.<UserRepurchase>lambdaQuery().eq(UserRepurchase::getTxHash, txHash));
    }

}
